import { createApp } from 'vue'
import App from './App.vue'
import ElementPlus from 'element-plus'
import 'element-plus/dist/index.css'
import vant from 'vant';
import 'vant/lib/index.css';
import { createPinia } from 'pinia'
import router from './routes/router'
import * as icons from "@element-plus/icons";
import locale from 'element-plus/dist/locale/zh-cn.mjs'

const app = createApp(App)

app.use(router)
app.use(createPinia())
app.use(ElementPlus, { locale: locale });
app.use(vant);
//  全局引入element图标
for (let iconsKey in icons) {
    app.component(iconsKey, icons[iconsKey])
}
app.mount('#app')

